<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<form:form action="${user.id }" method="post" modelAttribute="user">
		<table align="center">
			<tr><td colspan="2"><h2 align="center">添加</h2></td></tr>
			<tr>
				<td>ID</td>
				<td><form:input path="id" readonly="readonly" /></td>
			</tr>
			<tr>
				<td>姓名</td>
				<td><form:input path="name"/></td>
			</tr>
			<tr>
				<td>年龄</td>
				<td><form:input path="age"/></td>
			</tr>
			<tr><td colspan="2"><button type="submit">提交</button></td></tr>
		</table>
	</form:form>
</body>
</html>